import { get } from '@/axios'
const modelUrl = '/food'
const request_url = {
	list: modelUrl + '/list',
	del: modelUrl + '/delete',
	getById: modelUrl + '/getById',
	add: modelUrl + '/add',
	update: modelUrl + '/update',
	getList: modelUrl + '/getList'
}
const typeList = [
	{
		label: '全部',
		value: ''
	},
	{
		label: '主食',
		value: '主食'
	},
	{
		label: '大荤',
		value: '大荤'
	},
	{
		label: '小荤',
		value: '小荤'
	},
	{
		label: '甜点',
		value: '甜点'
	},
	{
		label: '汤',
		value: '汤'
	},
	{
		label: '纯素菜',
		value: '纯素菜'
	}
]
function getFoodOptions() {
	return new Promise(resolve => {
		get(request_url.getList, {}, content => {
			resolve(content)
		})
	})
} 

export default {
	typeList,
	request_url,
	getFoodOptions
}